Dealing with Hex

Use a union.
Use shifts.
Use a byte array.