During a pelvic exam, a sample of cells is typically taken from the cervix and examined under a microscope. What is the purpose of this procedure?