A commercial building near Scarborough town centre could be converted into two-bed residential accommodation.