Add int() and str.__int__ support