HHH-6747 - ClassCastException when rendering SimpleCaseExpression