Animation blueprint failed cast

Hi, i’m trying to get my character to play animations based on bullet hits.
I followed the
tutorial on 3rd person game with blueprints

only instead of punching i want a hit animation.
i did what he showed and tried to cast to my player in the animation blueprint, but the cast always fails.
the animation blueprint is set as the characters animation and it’s the correct skeletal mesh.

am i missing something?

That means the Pawn you’re referencing is not a CharacterBP. Did you follow the steps exactly? Does the CharacterBP reference that AnimBP? If you follow the steps exactly, it should work.