@Override
    protected boolean matchesSimpleAttribute(final SimpleAttribute<O, A> attribute, final O object, final QueryOptions queryOptions) {
        val value = (Class) attribute.getValue(object, queryOptions);
        return value != null && expectedClass.isAssignableFrom(value);
    }
This is {@link IsAssignableFrom}.

@author Misagh Moayyed
@since 7.0.0
core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/query/IsAssignableFrom.java