Precipitating the polymer by adding a non-solvent or a different solvent