How to get the rotation value of an object

Thanks a lot for the answer. I was expecting to always get the values from the editor, but the differ.

Yaw = 90°, Pitch = -90°, Roll = 0°
give me the exact value back

Yaw = 45°, Pitch = -90°, Roll = 0°
I get those, which are different:
Yaw = 26.565°, Pitch = -90°, Roll = 18.43°

Maybe Im missing some important detail. Any idea how to get those exact values back?

        aYPR := TriggerH.GetTransform().Rotation.GetYawPitchRollDegrees()
        if(Yaw := aYPR[0]):
            Print("Yaw  {Yaw}")
        if(Pitch := aYPR[1]):
            Print("Pitch  {Pitch}")
        if(Roll := aYPR[2]):
            Print("Roll  {Roll}")