Visual C# Guide
Conversion

We have already used a few of these functions to convert string input from the keyboard to numeric values.

The following functions can also be used,

System.Convert.ToBoolean()
System.Convert.ToByte()
System.Convert.ToChar()
System.Convert.ToDateTime()
System.Convert.ToDecimal()
System.Convert.ToDouble()
System.Convert.ToInt16()
System.Convert.ToInt32()
System.Convert.ToInt64()
System.Convert.ToSingle()
System.Convert.ToString()

C# has no operator for integer division. The following shorthand conversion can be used to achieve the same effect.

int wholeNumberDiv = number1 / number2;