Adapt tree to expected type pt.
Adapt tree to expected type pt.
the given tree
the expected type
the adapted tree
Generate a synthetic cast operation from tree.
Generate a synthetic cast operation from tree.tpe to pt.