Here's the quick and dirty way, in case the API doesn't expose a method that returns the type. (CATIA V5, Inventor, and probably a bunch of other programs do - No idea about ArcObjects.)
Microsoft.VisualBasic.Information.TypeName(doc.SelectedItem)