When a person has a cavity in their tooth, a dentist will probably recommend a filling. Fillings are safe and effective, but some people might experience discomfort or tooth sensitivity afterward.