This article specifies one way to convert the currency value to integer.
Use case: Convert Currency data type to Integer
The method valueOf can be used to convert the currency to integer.
Sample Code:
Here the AnnualRevenue column in Account object is of type currency. This value is converted to integer and added to list quarterBonus.
Account acc1 = [select AnnualRevenue from account where AnnualRevenue != null limit 1];
System.debug(‘Annual Revenue: ' + acc1.AnnualRevenue);
list<integer> quarterBonus = new list<integer>(1);
quarterBonus.add(0,integer.valueOf(acc1.AnnualRevenue));
system.debug('Quarter Bonus: ' + quarterBonus[0] );
Please note that this is just a sample code and may not satisfy your complete business needs.
Dev Doc: Integer Class
000387949

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.