title: howto create an Outlook.Folder Object from Outlook.Application.ActiveExplorer.CurrentFolder
body: <p>i have this "simple" Outlook-Object:</p>
  
  <pre><code>Outlook.Explorer olExplorer = this.Application.ActiveExplorer();
  </code></pre>
  
  <p>in "ThisAddin_StartUp" i register the <em>olExplorer.FolderSwitch</em> event to a function olExplorer_FolderSwitch(). There i must create an Outlook-Folder Object from the current Folder:</p>
  
  <pre><code>Outlook.Folder f = olExplorer.CurrentFolder as Outlook.Folder;
  </code></pre>
  
  <p>But: the property "CurrentFolder" is of type MAPIFolder and cant be used as <em>Outlook.Folder</em>.
  How can i "cast" the CurrentFolder-Property to an Outlook.Folder? - without loosing the event-handler? If i do this simple conversion, the object <em>f</em> will not fire the event BeforeItemMove - because <em>f</em> is NULL where olExplorer.CurrentFolder is not</p>