Fix violation of strict-aliasing rules