Converting CharSequence[] and CharSequence[]
<p>I always thought CharSequence[] and String[] were essential the same, however :</p>

<p>I have some code that has the following :</p>

<pre><code>CharSequence[] mEntries;
...
String[] mEntriesString = (String[]) mEntries;
ListAdapter adapter = new ArrayAdapter&lt;String&gt;(getContext(), R.layout.two_lines_list_preference_row, mEntriesString)
</code></pre>

<p>When the code runs I get </p>

<pre><code>java.lang.ClassCastException: java.lang.CharSequence[] cannot be cast to java.lang.String[]
</code></pre>

<p>So two questions ?</p>

<ul>
<li>why can this cast not happen</li>
<li>why does the ArrayAdapter not allow for a CharSequence[] in it's constructor.</li>
</ul>
