convert Map Values into String Array
<p>Here ,I am trying to convert map values into String array but i am getting  </p>

<p>Error</p>

<pre><code>ERROR/AndroidRuntime(23588): Caused by: java.lang.ClassCastException: [Ljava.lang.Object;
</code></pre>

<p>Code</p>

<pre><code>Map&lt;String,String&gt; contactNumber = new HashMap&lt;String,String&gt;(); 

String results [] =  (String[]) contactNumber.values().toArray();
</code></pre>
