Casting in blueprint function libraries

When I try to cast to anything (widget, or player) when I am in a blueprint function library, it says text does not inherit from character (cast to text will always fail). I set the object for the cas to get player character. Should I set it something else?

Can you be more specific. I have this function which works:

I also have a blueprint identical to ClockWorkOcean’s which works. However, it has caused me problems before. Check your world setting and make sure that a player character is actually spawning in the world for it to cast to.