I was wondering if this is possible or stupid.

I currently have a project that runs on a 5V DC adapter. The issues is I need like 6A at 5V which is a lot. This means the cord needs to be think and the adapter is also a monster. I already have a USB-C connector to program the ESP32.

For that reason I was thinking I could use USB-PD and ask it to send 2.5A at 12V and then step that down to 5V @6A. Then a simple Apple power adapter would work.

Is that a realistic thing to do and if so does anyone have any example circuits?