Convert to a transform stream.