Here is an example from my own project. In the top I create the HUD inside the MyCharacter blueprint and in the bottom I cast to it and then cast to the HUD to set a variable inside the HUD itself. (You can use it the same way to get a variable as well)