Yes, switching niches is doable, but doing so may take some time and work to build competence and credibility in the new area. It's possible that some of your prior specialization's abilities and expertise are transferable.