Using static cast for Dungeon spawners