How can I link the "Cast to character" node to the "Calculate Direction" node on the "Animation" Blueprint Event Graph?

hi, I tried to program character movement animation into a game I’m creating, but I can’t link those 2 specific nodes, which I saw is possible in many cases. I would’ve liked it if someone could’ve helped me with this.

Like so

Thank you so much!! It worked!