Removed memcpys using the union trick.