Node Type info from a namedDecl() matcher

Hi,
How can I get the type of a
node(FieldDecl,RecordDecl,FunctionDecl,...) that I've matched with a
namedDecl() matcher?