string[] weight = txtProductOptn1.Text.Split(',');
var Weight1 = Convert.ToInt32(weight);
Getting an error when i am converting the string array to int or decimal as
Unable to cast object of type 'System.String[]' to type 'System.IConvertible'.
Please find the answer.