int i =10; //integer value int f =3.147; //float value //implicit conversion f = i; //explicit conversion i = (int)f;