add toArray and toArrayCurrent with indice param