Added enum conversion.