How to convert object[] to specific type array
<p>I do not think I can convert the following:</p>

<pre><code>List&lt;B&gt; c = new ArrayList&lt;B&gt;();
c.add(***);
object[] a = c.toArray();
B[] b = (B[])a; //How to cast a back to B[]?
</code></pre>

<p>How can I achieve this in Java?</p>
