title: java.lang.ArrayStoreException at java.lang.System.arraycopy(Native Method)
body: <pre><code>        int toSize=toMailIds.size();
          InternetAddress[] address=new InternetAddress[toSize];
          address=toMailIds.toArray(address);
  </code></pre>
  
  <p>Here toMailIds is arraylist.</p>
  
  <p>Iam getting the following exception.</p>
  
  <p>java.lang.ArrayStoreException</p>