Making the method Utils.toText() accept objects and to return a stringified object