title: match with typeof in fsharp
body: <p>The first match works, but not the second one.
  Is there any way to match without declaring variables, beside using a chain of if/elif ?</p>
  
  <p>(Note that I use the value elem, while I match the variable t)</p>
  
  <pre><code>  let t = typeof&lt;string&gt;
    match propType with
    | t               -&gt;  elem.GetValueAsString() :&gt; obj
    | typeof&lt;string&gt;  -&gt;  elem.GetValueAsString() :&gt; obj
  </code></pre>