Add enum conversion #575