def _repeated_proto3_field_to_list(field):
    """Convert a proto3 repeated field to list.

    Repeated fields are represented as an object that acts like a Python
    sequence. It cannot be assigned to a list type variable. Therefore, doing
    the conversion manually.
    """
    result = []
    for item in field:
        result.append(item)
    return result