casting of int and error logging
Merge pull request #16 from ArthurGibbs/jira

casting of int and error logging