Solved some of the Int64 issues in issue 162
Truncate when converting xInt64 to lesser types.
Merge pull request #252 from markusjohnsson/issue_162_246

Solves Int64 problems mentioned in issues #162 and #246