addresses enum conversion warnings