code: def _cast_number(value): # source: https://bitbucket.org/openpyxl/openpyxl/src/93604327bce7aac5e8270674579af76d390e09c0/openpyxl/cell/read_only.py?at=default&fileviewer=file-view-default
      "Convert numbers as string to an int or float"
      m = FLOAT_REGEX.search(value)
      if m is not None:
          return float(value)
      return int(valuef _cast_number(value): # source: https://bitbucket.org/openpyxl/openpyxl/src/93604327bce7aac5e8270674579af76d390e09c0/openpyxl/cell/read_only.py?at=default&fileviewer=file-view-default
      "Convert numbers as string to an int or float"
      m = FLOAT_REGEX.search(value)
      if m is not None:
          return float(value)
      return int(value)
docs: Convert numbers as string to an int or float