Add toAsset method to URL generator interface.