how to cast to enemy to get the name variable

i tried to connect the target of set name to create select opponent button widget’s return value and i get no errors but when i ran it i got no enemy name but this( i mean the buttons on the left ), is there any way to change it to the variable name of the class enemy?



also the button widget blueprint was changed like this yesterday, should it really be like this?