code: def getv(self, r):
          
          v = self.get(r)
          if not is_unknown(v):
              try:
                  v = int(v)
              except ValueError:
                  v = None
          else:
              v = None
          return v
docs: Like the above, but returns the <int> value.