title: C# type cast from my type to my other type
body: <p>My code gets an object with everything in it. And as per different needs, it needs to be cast to different individual type.</p>
  
  <pre><code>class A
  {
      public static explicit operator B (A value)
      {
          ....
          return new B();
      }
  }
  
  class B
  {
      ...
  }
  
  public static T Get&lt;T&gt;(...)
  {
      A a = new A();
      return (T)A;
  }
  
  var b = Get&lt;B&gt;(...); // cannot convert a type of A to B
  </code></pre>
  
  <p>Any ideas?</p>