N,O-Heterocycles as synthetic intermediates