title: source[0] of type java.lang.Integer cannot be stored in destination array of type java.lang.CharSequence[]
body: <p>I am trying to diplay AlertBuild dialog after getting the intent in the <code>onNewIntent</code> method from the <code>onPostexecute</code> method. <code>routeList</code> has [1,9,13]. Currently I am getting this error <code>java.lang.ArrayStoreException: source[0] of type java.lang.Integer cannot be stored in destination array of type java.lang.CharSequence[]</code> </p>
  
  <pre><code>ArrayList&lt;Integer&gt; routeList = extras
                  .getIntegerArrayList("stop_route"); //[1,9,13]
          int routeListSize = routeList.size();
          if(routeListSize &gt; 0){
  
          CharSequence charSequence[] = routeList
                  .toArray(new CharSequence[routeList.size()]);
          for (int i = 0, size = routeList.size(); i &lt; size; i++) {
              charSequence[i] = String.valueOf(routeList.get(i));
          }
  
          AlertDialog.Builder builder = new AlertDialog.Builder(this);
  
          builder.setTitle("Select");
  
                  builder.setMultiChoiceItems(charSequence, null,
              new DialogInterface.OnMultiChoiceClickListener() {
  
          @Override
          public void onClick(DialogInterface dialog, int which,
                          boolean isChecked) {
                      // TODO Auto-generated method stub
  
                  }
              });
       }
  </code></pre>