use a union, its less UB that whatever i was doing before.