title: How to convert a String array to a CharSequence?
body: <p>I need to display a dialogue with a list of colors to choose from. I found this solution <a href="https://stackoverflow.com/questions/16389581/android-create-a-popup-that-has-multiple-selection-options">here</a>.</p>
  
  <pre><code>CharSequence colors[] = new CharSequence[] {"red", "green", "blue", "black"};
  
  AlertDialog.Builder builder = new AlertDialog.Builder(this);
  builder.setTitle("Pick a color");
  builder.setItems(colors, new DialogInterface.OnClickListener() {
      @Override
      public void onClick(DialogInterface dialog, int which) {
          // the user clicked on colors[which]
      }
  });
  builder.show();
  </code></pre>
  
  <p>I already have a String array of colors. How can I convert it to a CharSequence? I was thinking to use type casting</p>
  
  <pre><code>CharSequence colors[] = (CharSequence) mStringArray;
  </code></pre>
  
  <p>But this route does not work</p>