Converting a Vector of Objects to array of Strings
<p>I'm trying to convert a <code>Vector</code> of <code>Objects</code> that have a <code>toString()</code> method using</p>

<p><code>(String[]) mObjectVector.toArray(new String[mObjectVector.size()])</code></p>

<p>or</p>

<p><code>(String[]) mObjectVector.toArray(new Object[mObjectVector.size()])</code></p>

<p>However, it gives me the following errors:</p>

<p><code>java.lang.ArrayStoreException: source[0] of type .../myObjectType; cannot be stored in destination array of type [Ljava/lang/String;</code></p>

<p>and</p>

<p><code>java.lang.ClassCastException: [Ljava.lang.Object;</code></p>

<p>What is wrong?</p>
