Print a variable on screen

Hi
how can i print the value of the speed variable from the animation blueprint on my screen with every tick
i tried this but it didn’t work for me

the object you casting is incorrect

Mesh->GetAnimInstance

Thank you very much
it works now