title: Convert uint64_t to uint8_t[8]
body: <p>How can I convert <code>uint64_t</code> to <code>uint8_t[8]</code> without loosing information in C++?</p>
  
  <p><em>I tried the following:</em></p>
  
  <pre><code>uint64_t number = 23425432542254234532;
  uint8_t result[8];
  for(int i = 0; i &lt; 8; i++) {
      std::memcpy(result[i], number, 1);
  }
  </code></pre>