KClass of the expected value. If set the matcher is restricted to the given class type (excluding null). If null any value (type) is accepted. Default is null.