title: java: (String[])List.toArray() gives ClassCastException
body: <p>The following code (run in android) always gives me a ClassCastException in the 3rd line:</p>
  
  <pre><code>final String[] v1 = i18nCategory.translation.get(id);
  final ArrayList&lt;String&gt; v2 = new ArrayList&lt;String&gt;(Arrays.asList(v1));
  String[] v3 = (String[])v2.toArray();
  </code></pre>
  
  <p>It happens also when v2 is Object[0] and also when there are Strings in it.
  Any Idea why?</p>