Epimerization of C5 of an N-hydroxypyrrolidine in the synthesis of swainsonine related iminosugars.