Sometimes addresses can be, well, address objects. int(addr) should work tho.