What do you think about applying (or hiring) applicants who have experience but not in the specific stack of the job? I've found jobs in fields I'm passionate about, but I don't always have matching experience in the stack. Does YOE matter more than stack or is stack experience quintessential?

Ex: 5yrs experience in C++ but the job asks for 5yrs experience and Node.js