unaligned memory-access leads to bus-error on some architectures. memcpy the value instead of a direct assignment