using System;
public class Program
{
public static void Main()
// Implicit conversion. num long can
// hold any value an int can hold, and more! (smaller type to larger type)
int num = 2147483647;
long bigNum = num;
Console.WriteLine("Implicit conversion from int to long : {0}", bigNum);
// Explicit convertion - notice the '(int)' (larger type to smaller type)
double x = 1234.7;
int a;
// Cast double to int.
a = (int)x;
Console.WriteLine("Explicit conversion from double to int. Original double value : {0}, Cast integer value : {1}", x, a);
}