Type check for classes' slots.