Then set the project’s Game Mode to Master_GameMode like so:
Then open up the game mode and set the player state on the righthand side to Master_PlayerState:
Now the player controller that your game mode creates at runtime will have a playerstate that is of the class Master_PlayerState, the cast will succeed, and you can access the Player State variables you created from your widget blueprint.