def METHOD_NAME(self, group: str, name: str, default: int) -> int:
    """Return the value as an int, if it exists. Otherwise, return
    the default value.
    """
    if group in self._state:
        return checkInt(self._state[group].get(name, default), default)
    return default