} else if (object instanceof double[][]) {
returnValue = new DoubleMatrixToken((double[][]) object);
} else if (object instanceof Complex[][]) {
returnValue = new ComplexMatrixToken((Complex[][]) object);
} else if (object instanceof FixPoint[][]) {
returnValue = new FixMatrixToken((FixPoint[][]) object);
} else if (object instanceof double[]) {
DoubleToken[] temp = new DoubleToken[((double[]) object).length];
for (int j = 0; j < temp.length; j++) {
temp[j] = new DoubleToken(((double[]) object)[j]);