control Constant Current-Electromagnet

Not sure you would gain much. Driving a coil (motor or magnet) with a PWM, the induction of the coils acts like a big old low pass filter. So I'm not sure you would gain any smoother control using a variable (but constant) current driver. Note that many modern constant current driver themselves use PWM internally, followed by a low pass filter.