C(OC([N:8]1[CH2:13][CH2:12][C:11](=[O:14])[CH2:10][CH2:9]1)=O)(C)(C)C.[ClH:15].[CH3:16]O.[CH:18]([O:21]C(C)C)(C)C>CO>[ClH:15].[CH3:18][O:21][C:11]1([O:14][CH3:16])[CH2:10][CH2:9][NH:8][CH2:13][CH2:12]11-(tert-Butoxycarbonyl)-4-piperidinone (400 mg, 2.01 mmol) was dissolved in methanol (4 mL), and the solution was added with 10% hydrogen chloride-methanol solution (4 mL), followed by stirring at 50° C. for 2 hours. The reaction mixture was added with diisopropyl ether and the precipitated solid was collected by filtration, washed with diisopropyl ether and then dried under reduced pressure to obtain 4,4-dimethoxypiperidine hydrochloride (238 mg, yield 65%).