No, this is ... sparta. If you do str, you might end up with a string that does not represent an integer , imho.