title: How to convert a type to a value
body: <p>Let's say I have a type, for example:</p>
  <pre><code>type Contact = &quot;email&quot; | &quot;phone&quot;
  </code></pre>
  <p>Is there a way to convert the type <code>Contact</code> to a list of strings <code>[&quot;email&quot;, &quot;phone&quot;]</code>, so I could use that list at runtime, as an ordinary javascript value?</p>