title: Saving selected listbox(binded) items to an array in c#
body: <pre><code>string[] chkItems = new string[4];    
  string[] str = new string[4];
  str[0] = txtID.Text;
  str[1] = txtName.Text;
  str[2] = txtEmail.Text;
  itemCount = ltbxInterests.SelectedItems.Count;
  for (int i = 0; i &lt;= itemCount; i++)
  {
    ltbxInterests.SelectedItems.CopyTo(chkItems, 0); 
    // here it is returning an exception 
    //"Object cannot be stored in an array of this type."
  }
  </code></pre>
  
  <p>Please help me how to get out from this exception</p>