SyntaxFix
Write A Post
Hire A Developer
Questions
decimal d = 2; int i = (int) d;
This should work just fine.