Fix conversions from Strings to Integers to actually output integers

Should fix #26. I unfortunately cannot add a pull request to an issue someone else created.