def METHOD_NAME(self, inputhash) -> Optional[int]:
    "Convert the hexadecimal hash to a numerical value."
    try:
        return int(inputhash, 16)
    except (TypeError, ValueError):
        return None