"Cast to..." an actor object wildcard question

HI folks!
I’m trying to setup an interface, some sort of popup menu, that spawn when a line trace hits something that implements an interface. When it does, if i click a button in the popup menu, the thing should be changed into something else (i.e. a cube into a sphere).

Actually i’m trying to setup the binding of the button through a cast to get the transform of the object hit by the line trace, but there’s the problem: i don’t know what to plug into the object wildcard pin!

I need a specific answer to understand if the process or the logic behind it makes sense or not, because I’m starting to think that it’s wrong and i should figure something else…!
Here’s a screenshot of the actual situation.

the object pin needs to be a specific reference to something in the level in this instance. i assume your doing the line trace from the player character. if you are then you will just need to create a variable of type actor and make its value the actor that was hit by the trace. then in your widget get a reference to the character (get player character) cast to the player class type (thirdpersoncharacter or whatever yours is) and get the value of the variable created.

I’ll try this as soon as possible, thank you for dropping by with such a clear answer!

I had little time to work on my project, btw i tried your suggestion and it worked, thank you so much!