Change isKindOfClass to Swift grammer