Java: Casting Object to Array type
<p>I am using a web service that returns a plain object of the type "Object". Debug shows clearly that there is some sort of Array in this object (see the image below) so I was wondering how I can cast this "Object" to an Array (or similar)?</p>

<p><a href="http://img269.imageshack.us/img269/8439/objectdebug.png" rel="nofollow">Debug Image</a></p>

<p>I tried the following:</p>

<pre><code>Collection&lt;String&gt; arr = (Collection&lt;String&gt;) values;
Vector&lt;String&gt; arr = (Vector&lt;String&gt;) values;
ArrayList&lt;String&gt; arr = (ArrayList&lt;String&gt;) values;
</code></pre>

<p>But nothing worked. I always get an InvocationTargetException.</p>

<p>What am I doing wrong?</p>
