G. Mark’s Answer
Before you get pessimistic about switching, do your due diligence. Get a list of the classes required for each and look for overlap. Then see if some of the classes can be substituted for credit in your new degree program. This is best done by conferring with advisors for both majors. I was in computer science before switching to engineering. While the material overlapped quite a bit, the classes for each were largely different versions taught in different colleges. By investigation and getting advice, I was able to substitute many classes, particularly math classes. The versions were slightly different, with the engineering versions having more practical than theoretical focus, and the theoretical classes in engineering being in other areas. But it turned out the university did give me permission to do that, saving some hours. It couldn't hurt to try. Also, you might see if there are different versions of those degrees, which might have slightly different requirements. Your best bet is an enthusiastic counselor.