Many lenders in the UK allow you to switch from a buy-to-let to a residential mortgage. But the deals and rates will vary depending on you.
Some lenders might be better for switching, offering more flexibility or better rates. Shop around or talk to a mortgage broker for personalised advice. They can find lenders suited to your situation.