We run (maybe ran) a program where people from other parts of the airline could apply for pilot jobs, if they passed the medical and other tests they went through the cadet scheme funded by the company and became second officers. Have flown with a couple of FOs who were cabin crew and did this.