Not part of open-source Trino, but Starburst has a tool called Schema Discovery that allows you do this.
https://docs.starburst.io/latest/insights/schema-discovery.html#column-type-conversion
https://docs.starburst.io/starburst-galaxy/working-with-data/explore-data/schema-discovery.html