I’m not “flaming” you because you don’t know what object to take. I just told you several times that you need to learn a bit “Objective Programming”, because otherwise you will ask this again and again,
like you do now. It’s totally ok to ask this 2-3 times, but you seem to just ignore my advice on learning the language and keep “programming” where you always find this Casting Object “problem”.
You would save yourself a lot of headache and time if you would look into “Inheritance”, “Casting Classes”, “Parent and Child Classes” and that stuff. If you do this, you would understand what the
Casting node wants from you. I already wrote you a complete example 2 times. It just feels like you don’t want to invest time into learning the actual language.
You need to understand the basics of C++ (or any other objective programming language) even when you use Blueprints!
So to fix your problem:
What is “HUDTimer” for a class? A Widget? You need the reference to it then. You created the widget somewhere and you are able to save the return value of the Create Widget node to a variable.
You can then reuse the variable later.
If you need Widget globally (so you want to be able to access them easily in other blueprints) create them in the GameState or other classes that you can just get (Like “Get GameState”) or in your PlayerController.
Just take a Class that you can get easily and save the created widget in a variable there. Then you can get it easily and you have your object for casting.
(If you save the Widget directly as the HUDTimer and not as UserWidget you don’t need to cast the variable in other blueprints anymore).
ALSO:
“DestroyActor” should be called AT THE END of an execution line, so after you set the variable.