Added function to convert uintptr to TreePath