Modify stream's datatype