PWM voltage not right, need to step down 24v

Hi. I ordered an neje laser module, but when I was
going to install it, i noticed that the tester board is only rated to 12v , but my 3d printers pwm is at 24v , im planning to use the type A wiring method on the tester bord! So I watched several videos, how to step down the voltage, and I found an 24v to 12v car convertor, and i asked to myself, is it suitable for PWM? Could someone help me with this situation?