}
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) {