In order to use slice(...).toArray