Fix tTriple2Ntriple to handle type issues