update autoTypeConvert to loop through arrays and convert