Replace intval() with int typecasts
Correct typecast of math expression
Merge pull request #4584 from bcrowe/3.0-int-cast

3.0 - Replace intval() with int typecasts