code: void expectActualObject(Node n, JSType type, String msg) {
      if (!type.isObject()) {
        mismatch(n, msg, type, OBJECT_TYPE);
      }
    }
docs: Expect the type to be an object. Unlike expectObject, a type convertible to object is not
  acceptable.