Given an array of integers as strings and numbers, return the sum of the array values as if all were numbers.
Return your answer as a number.
def sum_mix(arr):
    sum = 0
    for i in range(len(arr)):
        if isinstance(arr[i], str): sum += int(arr[i])
        else: sum += arr[i]
            
    return sum
def sum_mix(arr):
    sum = 0
    for i in range(len(arr)):
        if isinstance(arr[i], str): sum += int(arr[i])
        else: sum += arr[i]
            
    return sum