CharSequence ArrayList to charSequence casting
<p>There is problem of class casting. Please tell me how to cast this. I want to this <code>ArrayList&lt;CharSequence&gt;</code> in my <code>CharSequence[]</code> named <code>Contacts</code>.</p>

<p><code>java.lang.ClassCastException</code> (in Android):</p>

<pre><code>CharSequence[] Contacts;
List&lt;CharSequence&gt; contacts = new ArrayList&lt;CharSequence&gt;();


Contacts = (CharSequence[]) contacts.toArray();

for(CharSequence p : contacts) {
    Log.i("log_tag", "AAAAAAAAAAAAAAAAAAA" + p);
}
</code></pre>
