Change the document type