Depends how strictly you classify it. Although age is an important risk factor for most types of cancer, there are many childhood cancers as well. Whereas dementias are almost always seen in adulthood, and especially prevalent in old age.
Certainly, dementia research receives considerably less funding then cancer research, so I agree with you that these prominent diseases of ageing are underfunded in terms of figuring out a cure.