I recall a UAL 737 in which the captain had an unknown brain tumor...and he was under 60 years of age. His performance was impaired. and this was in the day of 3 crewmembers on the 737.
there are cases of people with dementia in their middle age. so let's not use age as the sole factor.