Cast error when using custom logger.


I have my own logger class that inherits from Microsoft.Build.Utilities.Logger. This is part of my overall Package implementation in VS2008.
When I run I get a cast error in method SetOutputLogger on this line in ProjectNode.cs --> ((IDEBuildLogger)this.BuildLogger).OutputWindowPane = output;
"Unable to cast object of type Idea.Xgen.XgenLogger.XgenLogger to type Microsoft.VisualStudio.Project.IDEBuildLogger".
I had reported this in the past for VS2005 and it was suggested to get around it for the time being with an IF statement before --> if (this.buildLogger is IDEBuildLogger)
Is this something that needs to be fixed the the MFP source or do I have a bug in my implementation?