moved cast to int outside of calculation
Merge pull request #219 from igal-getrailo/jira-2543

moved cast to int outside of calculation