code: def int(self, item, default=None):
          
          try:
              item = self.__getattr__(item)
          except AttributeError as err:
              if default is not None:
                  return default
              raise err
          return int(item)
docs: Return value of key as an int
  
          :param item: key of value to transform
          :param default: value to return if item does not exist
          :return: int of value