How can I access variables from my Character Blueprint inside my Animation Blueprint?

I tried using Cast to MyCharacter in the Anim BP (Event Blueprint Update Animation), but the cast fails or I can’t get the variable I want. What is the correct way to get a variable from the Character Blueprint inside the Animation Blueprint?