manipulate variables inside actors with an editor script

Is it possible to manipulate an actor’s variables from an ActorActionUtility?

I made it via a get selected actor → get actor at index 0 → cast to the same actor
Then I can access the variables.
However the changes are not permanent, I did hope I could write directly into the variables and store them, but it’s exactly like when running in PIE mode, all the changes get lost.