Problem: setline() gives an error for some types. Solution: Allow any type, convert each item to a string.