<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def convert_to_str(l: Node) -> str: """ converts the non-negative number list into a string. """

    result = ""
    while l:
        result += str(l.val)
        l = l.next
    return result