I had a need to change all char columns to varchar, so I wrote a utility (see attached). Sharing it here in case it helps anyone.
The code should be self explanatory. In case you have any questions, feel free to contact me.
Best regards,
Aditya Gir