Depending what level of chemistry we are discussing now, there are surely methods to convert amides to esters:
Tetrahedron Letters 55, 50, 2014, 6935-6938
Nature 524, 79–83(2015)
Org. Lett. 2018, 20, 18, 5622–5625
and possibly others. Especialy the orglett paper is interesting IMO. The trick is to either cleave the C-N bond by transition metals or block the resonance stabilization and planarity by EWG groups like Boc or Tosyl