toUrl

Convert the resource to a URL.