Wrong class type was specified.