The type of a value passed to a Java™ access function is not correct.
Values assigned to fields, and parameters passed to methods and constructors, must have the proper type. An exact match is not required as long as the conversion between the types is valid in Java. For example, a subclass may be used instead of its superclass, and a smaller primitive type, such as short, may be used instead of a larger one, such as int.