why the cast is failing?
<p>I am trying to do this</p>

<pre><code>List&lt;String&gt; stringList = new ArrayList&lt;String&gt;();
stringList.add("one");
stringList.add("two");
stringList.add("three");

(String[]) stringList.toArray();
</code></pre>

<p>why does this gives me class cast exception ?</p>

<pre><code>Caused by: java.lang.ClassCastException: [Ljava.lang.Object;
</code></pre>
