Normally, this wouldn't be annoying, but I have a very large amount of functions that are calling this function, and they take multiple arguments.
So, I am asking, is there an easier way to do this? Could I just pass pointers to all of the functions instead of references so I wouldn't have to go do all this casting?
Yes, but this is just an example of how the problem comes up, it's that I have a function that references a bunch of other variables inside of animate to do its work (to decide whether to send the data to them or not, etc)