[TASK] Cast all iterator_to_array returns to array