The present invention relates to a process for manufacturing an object made of biocompatible hydrogel by molding a polymer solution in a mold made of a particular material, said process comprising the following steps:(i) preparation of a polymer solution by dissolving a copolymer of acrylonitrile and of an olefinically unsaturated co-monomer bearing anionic groups in an aprotic solvent, optionally in the presence of a nonsolvent,(ii) shaping and the start of gelation of the polymer solution obtained at the end of step (i) in a mold consisting of a material containing said nonsolvent or of a material permeable to said nonsolvent,(iii) immersion of the object undergoing gelation resulting from step (ii) in a nonsolvent.The present invention also relates to the objects made of biocompatible hydrogel resulting from this process such as, for example, intracorneal lenses (or lenticules) implantable in the cornea or any other implants usable in ophthalmology.