code: def _match_to_array(m):
      
      return [_cast_biopax_element(m.get(i)) for i in range(m.varSize())]
docs: Returns an array consisting of the elements obtained from a pattern
      search cast into their appropriate classes.