for(int i = 0; i < listOfREXP.length; i++){
REXP obj = (REXP)listOfREXP[i];
Object javaObj = rexp2javaObj(obj);
if (javaObj instanceof RFactor)
{
RFactor factorjavaObj = (RFactor)javaObj;
String[] levels = factorjavaObj.asStrings();
listOfREXP[i] = levels;
}
else
{
listOfREXP[i] = javaObj;