combine multiple Enum values to one integer and back to its original values