fix to allow for converting to Int
Created by: leios
A bit lost with this PR, but it is an attempt at a fix for #254 (closed) and #265 (closed).
I posted the error messages on those Issues and have a few lines here that I've played around with. I am ultimately trying to replace the InexactError with a working version