} else if (type == void.class) {
toReturn = NullValueCommand.INSTANCE;
} else if (type == long.class) {
toReturn = new LongValueCommand((Long) value);
} else if (type == char.class) {
toReturn = new CharValueCommand((Character) value);
} else {
assert value instanceof Number : "Expecting Number; had "
+ value.getClass().getName();
toReturn = new DoubleValueCommand(((Number) value).doubleValue());
}