Checks the value's class type, which should match at least of the types given in any_expected_class_types.
Useful links