title: Convert UnmanagedMemoryStream to Byte-Array
body: <p>Simple as that, how I can convert in <strong>VBNET</strong> a <strong><em>UnmanagedMemoryStream</em></strong> to <strong><em>Byte-Array</em></strong>?:</p>
  
  <pre><code>Dim bytes() As Byte = My.Resources.AudioFile
  </code></pre>
  
  <p>Exception:</p>
  
  <pre><code>Value of type 'System.IO.UnmanagedMemoryStream' cannot be converted to '1-dimensional array of Byte'.
  </code></pre>