def positive_int_validator(value: int) -> int:
    """
    Validate for positive int

    Arguments:
        value {int} -- int number

    Raises:
        ValueError: Value is an str that can not convert to an int
        ValueError: Value has to be an int
        ValueError: Value has to be equal or greater than 0

    Returns:
        int -- unchanged input value
    """

    # raise when value is not an int
    if isinstance(value, str):
        try:
            value = int(value)
        except ValueError:
            raise ValueError("Value has to be an int!")

    # raise when value is not an int
    if not isinstance(value, int):
        raise ValueError("Value has to be an int!")

    # raise when value is smaller than 0
    if value < 0:
        raise ValueError("Value has to be equal or greater than 0!")

    return value