Synthesis of 2-aryl-3-(2-cyanoethyl)aziridines and their chemical and enzymatic hydrolysis towards γ-lactams and γ-lactones.