import ipaddress


def recast_ip(ip: int):
    """Recast ip address integers to a dotted quad string"""
    try:
        return str(ipaddress.ip_address(ip))

    except ValueError:
        return None