How do I convert a decimal to an int?
decimal d = 5.5;
d = 5.5
int i = decimal.ToInt32(d);// you will get i = 5
ref: link text