Please avoid "hacks" with union, they cause portability headaches (endianness, alignment issues).
A legitimate use of union is to store different data types at the same place, preferably with a tag so that you know which type it is. See the example by 1800 INFORMATION.
Don't use union to convert between data types, e.g. from an integer to several bytes. Use shift and masking instead for portability.