code: def _cast_int(self, value):
          
          try:
              return int(value)
          except ValueError:
              msg.err("Cannot convert {} to int for line {}.".format(value, self.identifier))
              exit(1)
docs: Returns the specified value as int if possible.