Cast fail in animation blusprint

I need to make a caste to my character’s bluprint from animation blusprint.

https://forums.unrealengine.com/filedata/fetch?filedataid=160291&type=thumb

And this does not work. I do not understand why. To test this system, I created the same cast in the level blueprint. And he works in the level blueprint.
What should I do to make it work and in the animation blusprint?

https://forums.unrealengine.com/filedata/fetch?filedataid=160292&type=thumb

Thank you so much in advance.