hunting bad dynamic cast