title: How to check that object implements interface
body: <p>Given this scenario</p>
  
  <pre><code>interface A {}
  
  class B : A {}
  
  A b = new B();
  </code></pre>
  
  <p>How can I check that object b is created from interface A? </p>