VectorToData[vec,{dim,pos}]
converts the vectorized data from DataToVector back to its original Dimensions.