i think you can do int(str)