This protein functions as both a racemase and an epimerase. It also acts as a NAD-dependent epimerase/dehydratase.