title: C# and F# casting - specifically the 'as' keyword
body: <p>In C# I can do:</p>
  
  <pre><code>var castValue = inputValue as Type1
  </code></pre>
  
  <p>In F#, I can do:</p>
  
  <pre><code>let staticValue = inputValue :&gt; Type1
  let dynamicValue = inputValue :?&gt; Type1
  </code></pre>
  
  <p>But neither of them is the equivalent of the C#'s keyword <code>as</code>.</p>
  
  <p>I guess I need to do a match expression for the equivalent in F#</p>
  
  <pre><code>match inputValue with
  | :? Type1 as type1Value -&gt; type1Value
  | _ -&gt; null
  </code></pre>
  
  <p>Is this correct?</p>