title: Convert ArrayList<Byte> into a byte[]
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/718554/how-to-convert-an-arraylist-containing-integers-to-primitive-int-array">How to convert an ArrayList containing Integers to primitive int array?</a>  </p>
  </blockquote>
  
  
  
  <p>How to convert an <code>ArrayList&lt;Byte&gt;</code> into a <code>byte[]</code>?</p>
  
  <p><code>ArrayList.toArray()</code> gives me back a <code>Byte[]</code>.</p>