casting AssemblyDoc to Component2

Hi,

As the topic says, i would like to cast an AssemblyDoc (or ModelDoc2) to Component2. Is this possible in any way?

I am using C#

SolidworksApi macros