check for class isAssignableFrom