}
else if(obj instanceof int[]){
return new REXPInteger((int[])obj);
}
else if(obj instanceof double[]){
return new REXPDouble((double[])obj);
}
else if(obj instanceof double[][]) {
return matrix2rexp((double[][])obj);
}
else if(obj instanceof String[]){
return new REXPString((String[])obj);
}
else if(obj instanceof boolean[]){
return new REXPLogical((boolean[])obj);
}
else if(obj instanceof byte[]) {
return new REXPRaw((byte[])obj);
}
else if(obj instanceof Integer){
return new REXPInteger((Integer)obj);
}
else if(obj instanceof Double) {
return new REXPDouble((Double)obj);
}
else if(obj instanceof String) {
return new REXPString((String)obj);
}
else if(obj instanceof Boolean) {