How to convert an Integer[] to an int[]?
<pre><code>// how to convert this
Integer[] array = {1, 2};

// to this
int[] array = {1, 2};
</code></pre>

<p>I'm working on code that has the second form, and I need to modify how the array is read. Not knowing enough of Java, I would rather just convert than risk bugs.</p>
