You would check which type it is using the of operator 
    
    
    if curr of BBNode2:
      #cast to a BBNode2
    else if curr of BBLeaf:
      #cast to a BBLeaf
    
    
    Run

Reply via email to