title: Unable to cast object of type 'System.String[]' to type 'System.IConvertible'
body: <pre><code>string[] weight = txtProductOptn1.Text.Split(',');
  var Weight1 = Convert.ToInt32(weight);
  </code></pre>
  
  <p>Getting an error when i am converting the string array to int or decimal as </p>
  
  <blockquote>
    <p><em>Unable to cast object of type 'System.String[]' to type
    'System.IConvertible'.</em></p>
  </blockquote>
  
  <p>Please  find the answer.</p>