SyntaxFix
Write A Post
Hire A Developer
Questions
Yeah, why not?
double someDouble = 12323.2; int someInt = (int)someDouble;
Using the Convert class works well too.
Convert
int someOtherInt = Convert.ToInt32(someDouble);