Does anyone know how to switch to a student visa?

I need to switch my visitor’s visa to a student visa, does anyone know how to do that?