A cashout refinance is the way to go if you are trying to hold onto it as a rental
Just make sure you are at least breaking even (and ideally making a profit) on your new payment compared to rents minus a property management company and vacancy rates for the area.