title: in f# match statement how do I match to the type byte[]?
body: <p>I'm trying to lookup DbType enumeration values from .net types. I'm using a match statement. However I cannot figure out how to match on the type byte[].</p>
  
  <pre><code>let dbType x =
    match x with
    | :? Int64 -&gt; DbType.Int64
    | :? Byte[] -&gt; DbType.Binary // this gives an error
    | _ -&gt; DbType.Object
  </code></pre>
  
  <p>If there is a better way to map these types, I would be open to suggestions.</p>