How can I attach a widget to a mesh and use his variables?

oh thanks!! Im new to Unreal Engine, I thought that the cast was only for actor blueprints, I did not imagine that it was for widgets as well. Thanks!!