added cast_to_text option for non-string columns