title: Match Type directly in F# (not the object, the actual System.Type)
body: <p>I know how match on the Type of a object, but how directly on the Type object?</p>
  
  <p>This not work:</p>
  
  <pre><code>    let toType = p.PropertyType 
  
      match toType with
      | System.Enum -&gt; 
      | System.Int32 -&gt; 
  </code></pre>
  
  <p>PD: Yes, I need to match the type. I don't have the object because I'm reflecting</p>