Fix cast exception with CreatureSpawnEvent