def METHOD_NAME(profile: str, o):
    """Convert properties to string."""
    if isinstance(o, timedelta):
        return format_duration(o, profile)
    if isinstance(o, babelfish.language.Language):
        return format_language(o, profile)
    if hasattr(o, 'units'):
        return format_quantity(o, profile)
    return str(o)