changed object's types check to methods call: obj->GetSchema()->GetSchema()