Tries to fetch a variable from the config and expects it to be strictly an int
        :param key: Variable to look for
        :param optional: Whether to raise ConfigKeyNotFoundError if key was not found.
        :return: int

def get_int(self, key, optional=False):
        """
        Tries to fetch a variable from the config and expects it to be strictly an int
        :param key: Variable to look for
        :param optional: Whether to raise ConfigKeyNotFoundError if key was not found.
        :return: int
        """
        return self._get_typed_value(key, int, lambda x: int(x), optional)