def format_row(csv_row: dict):
    """
    Perform type conversion on the values in the row.
    """
    for key in csv_row:
        if key in ('bearing', 'speed', 'altitude', 'pressure'):
            csv_row[key] = int(csv_row[key])
        elif key in ('latitude', 'longitude', 'temperature'):
            csv_row[key] = float(csv_row[key])
    return csv_row