def translate_from(instance: Model): try: return True, typic.translate(instance, Model) except (ValueError, TypeError) as err: return False, err
def translate_to(instance: Model, target: Type): try: return True, typic.translate(instance, target) except (ValueError, TypeError) as err: return False, err