int i = 2000000000; long k = i*(long)i; // avoids overflow