title: How to implicitly convert the type `System.Delegate` to `WebPageManager`
body: <p>I have an error in this code. I cannot implicitly convert the type <code>System.Delegate</code> to <code>WebPageManager</code> on the last line. How can I do that?</p>
  
  <pre><code>public WebCrawler(string startUri, string baseUri, int maximumUrlAllowed, bool keepWebContent, WebPageManager webPageManager)
  {
      this.StartUri = new Uri(startUri);
  
      // In future this could be null and will process cross-site, but for now must exist
      if ((baseUri == null || baseUri.Trim().Length == 0))
      {
          this.BaseUri = new Uri(this.StartUri.GetLeftPart(UriPartial.Authority));
      }
      else
      {
          this.BaseUri = new Uri(baseUri);
      }
  
      this.MaximumUrlAllowed = maximumUrlAllowed;
      this.KeepWebContent = keepWebContent;
  
      m_webPagesPending = new Queue();
      mWebPages = new Hashtable();
  
      mWebPageManager = webPageManager;
  
      webPageManager.WebPageContentHandler = Delegate.Combine(webPageManager.WebPageContentHandler, new WebPageContentDelegate(this.HandleLinks));
  }
  </code></pre>