use the Convert.ToInt32() method or the type cast (int) operator.
xxxxxxxxxx
double myDouble = 3.14;
int myInt1 = Convert.ToInt32(myDouble); // method 1
int myInt2 = (int)myDouble; // method 2
Console.WriteLine(myInt1); // output: 3
Console.WriteLine(myInt2); // output: 3
Note that when converting from a double to an int, the decimal portion of the number is truncated.