Assign each Byte of a long or int a value

Ah Ok,
thank you (both). So I have two Ideas.
The Union construct looks nice and quite clear in structure (although it's new to me).

Thanks a lot!