CS(O[CH2:6][CH:7]1[CH2:12][CH2:11][N:10]([C:13]([O:15][C:16]([CH3:19])([CH3:18])[CH3:17])=[O:14])[CH2:9][CH2:8]1)(=O)=O.O.[C-:21]#[N:22].[Na+]>C(O)C>[C:21]([CH2:6][CH:7]1[CH2:12][CH2:11][N:10]([C:13]([O:15][C:16]([CH3:19])([CH3:18])[CH3:17])=[O:14])[CH2:9][CH2:8]1)#[N:22]tert-Butyl 4-{[(methylsulfonyl)oxy]methyl}piperidine-1-carboxylate (15.3 g) was dissolved in ethanol (80 mL), water (20 mL) and sodium cyanide (4.0 g, 80 mmol) were added, and stirring was conducted at 80° C. for 24 hours. Ethanol was distilled off, water and ethyl acetate were added, and then the resultant mixture was subject to Celite filtration, followed by extraction with ethyl acetate. The organic layer was washed with saturated brine, dried over anhydrous sodium sulfate and concentrated under a reduced pressure, and the obtained residue was purified by using silica gel column chromatography (hexane:ethyl acetate=3:1→2:1) to give tert-butyl 4-(cyanomethyl)piperidine-1-carboxylate (6.87 g, 77%, 3 steps) as a white solid.