A tough job market and the threat of artificial intelligence are leading to some radical career changes.