I\'m trying to get the Score_Waarde value from my database using the following code :
Score_Waarde
critid = critid_arr[teller2].ToString(); int scorehulp =
Your SQL is probably giving back a different numeric type, such as long or decimal, or, apparently, string.
long
decimal
string
Call Convert.ToInt32, which doesn't have the limitations of an unboxing cast.
Convert.ToInt32