public static void Main()
Double doubleVal = -2.345;
int i = (int)doubleVal.ChangeType(typeof(int));
Console.WriteLine("The double value {0} when converted to an int becomes {1}", doubleVal, i);
DateTime dt = (DateTime)str.ChangeType(typeof(DateTime));
Console.WriteLine("The string value {0} when converted to a Date becomes {1}", str, dt);