Being overweight in midlife is associated with lower cognitive ability and steeper cognitive decline in late life.