Personally I would have no compunction whatsoever about hiring a guy of 40.
The guy would have a bit of "life experience" behind him at that stage, something that a lot of younger people sadly lack when starting out.