Perform a type check before casting to TreeItem*
Display the name for the Quick Links node