This is our helper class for enum conversions.