The upper floors of a city centre retail building can be converted into flats.