remove undefined behavior usage of a union.

Change-Id: I6a4eed40217acd052d7f594d3f5cb91f402e336a
Merge branch 'remove_unions'

Change-Id: I1b0e24a698ac944dfc480aa7785f484b48faf98c