title: convert listbox items to array integers C#
body: <p>Having trouble adding integers to the item array of a list box. Cannot seem to convert the listbox to integer.</p>
  
  <pre><code>int[] ratingArray = new int[numberRatingsInt];
  for (int i = 0; i &lt; numberRatingsInt; i++)
  {
      ratingArray[i] = Convert.ToInt32(ratingListBox.Items[i]);
  }
  </code></pre>