Cast to Character failed in Animation Blueprint

I have the same question!!!
Finally,I found I open the wrong AnimBP. I actually use another AnimationBP now.
Maybe you should check your animation Blueprint name.