Casting is essentially converting from a Dynamic to a Static type or vice versa.

Casting == Dynamic

Try explicitly to set the function definition to ```T:FlxSprite -> V - > Void```, you never know, Haxe is weird.