}
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) {
return new REXPLogical((Boolean)obj);
}
else if(obj instanceof Enum<?>) {
return new REXPString(obj.toString());
}
else if(obj instanceof Map<?,?>){