Hit Reaction

I am punching my enemy which has the sam parent bp as the player character .i.e. both have a inherted capsule collision. The collision surely occurs and event- on overlap begin(handcapsule)(capsule attached to hand) is surely firing but the casting fails . The enemy is named EnemyCharacter in the bp and I am also using Cast to EnemyCharacter but it still fails. The input of cast is attached to the other actor output of the event- on overlap begin(handcapsule) .please help