def check_expire(expire: int) ->int:
    """
    Check that the expire value is a positive integer.

    :param expire:
    :return:
    """
    expire_int = int(expire)
    if expire_int < 0:
        raise ValueError('Expire must be a positive integer')
    return expire_int
