Convert tree nodes to usable objects