HI, Where is Function "get user widget object" in UE4.17.2

I didn’t understand the ‘wrap it in a function bit’, because I’m trying to get the HealthBar widget to connect with Cast to UIHealthBar just like sernic77 pointed above. Where exactly do I define the logic before I put it in the construction script?

Thanks for your help!