code: public void setType(Type type) {
          Type actual = Type.preserveType(this.getType(), type);
  
          mConversions.clear();
          mExceptionPossible = false;
          if (actual != null) {
              // Prefer cast for initial type for correct operation of
              // setInitialType if a conversion needs to be inserted at the
              // beginning.
              mConversions.add(new Conversion(null, actual, true));
          }
      }
docs: Sets the type of this expression, clearing the conversion chain.