Hellow, after testing many types of castings, I still wondering about the safest way of some cast,
like ,
private void remove()
{
Game1 world = (Game1)getWorld();
if(getY()<10)
{
world.removeObject(this);
world.addArrows(-1);
}
}
or
private Game3 world;
/**
* Called when the target is added to the world.
*/
public void addedToWorld(World world)
{
this.world = (Game3)world;
}
are there better ways to cast the world/actor ?

