SyntaxFix
Write A Post
Hire A Developer
Questions
You can try this:
((BigDecimal) volume).intValue();
I use java.math.BigDecimal convert to int (primitive type).
java.math.BigDecimal
int
It is worked for me.