A friend just asked me the way to cast a SPList To a SPDocumentLibrary so that he could access the document library specific attributes for document library objects. This is one way of doing it:
Select For Unformatted Code
C#: public static SPWeb GetWeb(string
Read More...
Read the complete post at http://www.sharepointsecurity.com/blog/sharepoint/sharepoint-2007-development/casting-to-spdocumentlibrary/