title: How can I get the property value enum?
body: <p>I have an Enum with 2 cases and each take a String and an Int as properties:</p>
  <pre><code> public enum TestEnum {
       case case1(String, Int? = nil)
       case case2(String, Int? = nil)
   }
  </code></pre>
  <p>I create an enum with value case1 and these 2 properties:</p>
  <pre><code>let e = TestEnum.case1(&quot;abc&quot;, 123)
  </code></pre>
  <p>my question is how can I get</p>
  <p>I tried</p>
  <pre><code>        let a = e.case1.0 // expect to get 'abc' back
          let b = e.case1.1 // expect to get '123' back
          
          print (&quot;\(a)&quot;)
          print (&quot;\(b)&quot;)
  </code></pre>
  <p>But I get compile error 'Enum case 'case1' cannot be used as an instance member'</p>