Added conversion methods for classification.