Cannot implicitly convert type 'int' to 'string'
Say you have a variable x and you need to pass it as a parameter in a SQL query and it has to be an INT data type. Just convert the variable to an INT using this syntax:
Convert.ToInt32(x.Value);
over and out


