Using static cast for MineShaft spawners