Is it possible to power a Raspberry Pi 3B+ from a 24v PSU?

I have a 24V 350W power supply in my 3D printer’s electronics box. I was wonder if there was an easy way to power my Raspberry Pi just by wiring the 24V +/- to something in the middle then somehow connecting that power to my Pi. Any help is much appreciated!

Yes using a step-down (buck) converter. I use them all the time in my robots where I’m using 24V supplies for the steppers and I also need to power the controller - typically a Raspberry Pi.