title: casting delegate
body: <p>I'm pretty new to c#, so my question might be simple, but here goes.</p>
  
  <p>I've have been trying to work with delegates, and is kinda stuck with this problem.</p>
  
  <pre><code>.....
      public delegate double delegateA();
      public delegate double delegateB();
  
      public static double myFunc()
      {
          return 0;
      }
      public static delegateA myTest()
      {
          return myFunc;
      }
  
      static void Main(string[] args)
      {
          delegateB myFuncDelegate;
  
          myFuncDelegate = myTest();  // &lt;-- Error: Cannot implicitly convert type....
      }
  .....
  </code></pre>
  
  <p>I don't know how to make this conversion work, unless using the same delegate as type.
  But in my project, it would be more pretty for the delegate's to have different names (as they exist in different classes.</p>
  
  <p>Hope you can help me.</p>