I\'d like to know if there is a \"safe\" way to convert an object to an int, avoiding exceptions.
int
I\'m looking for something like public static bo
public static bo
int variable = 0; int.TryParse(stringValue, out variable);
If it can't be parsed, the variable will be 0. See http://msdn.microsoft.com/en-us/library/f02979c7.aspx