storing copy of QualType like nodes


the documentation [1] says:

template const T* clang::ast_type_traits::DynTypedNode::get

For types that have identity via their pointer in the AST (like Stmt, Decl, Type and NestedNameSpecifier) the returned pointer points to the referenced AST node. For other types (like QualType) the value is stored directly in the DynTypedNode, and the returned pointer points at the storage inside DynTypedNode. For those nodes, do not use the pointer outside the scope of the DynTypedNode.

However making a copy of the QualType object for using it “outside” of the scope of the DynTypeNode, should be safe, or? I need it for a C interface like libclang.