I am trying to take the average of account premiums, and the account premium is reading as a string value rather than integer. I have tried to convert is by using: Average($F{"AccountExt_TotalAccountPremium" == null?0:Inteer.valueOf($F{"AccountExt_TotalAccountPremium"}, 'Current') but this is not working, "Incorrect expression". Help! I feel like this may be a problem for most of the fields I need to use.