Adds a transform method to Try