Retrieves an element from the document and returns it if it has the expected type.
The document from which to look up the element.
The ID of the element.
The type you expect the element to have.
The requested element, if it has the expected type; null otherwise.
null
Retrieves an element from the document and returns it if it has the expected type.