do not cast InstanceScript* to InstanceScript*, that cast is useless