The collimation of magnetized winds