add Uri and string cast operator to help with unit testing