Converts a sequence of matrices or CSR arrays to a Value object
asvalue(variable, data_array)
variable
matrix of data