Barack Obama has agreed to deliver the commencement address at Wesleyan University in place of Sen. Edward Kennedy, who pulled out Thursday after finding out he had brain cancer.

Kennedy, 76, had planned to address the graduates — including stepdaughter Caroline Raclin — Sunday in Middletown, Conn. The commencement exercises coincide with 25th reunion festivities for his son, Edward Kennedy Jr., who graduated from the school in 1983.

The Massachusetts Democrat decided against making the trip after suffering a seizure last Saturday and undergoing a brain biopsy on Monday. A malignant brain tumor was diagnosed on Tuesday.