As TriNityGER said, the casting problem is a problem of your implementation instead of the engine.
Using this validation:
and calling the interface method.
Every “obstacle” knows how should react when a missile is hitting it, implementing its behahivor in the “onExplosion” interface implementation.