You'll have to check that w_type is kind of w_class