Adding method toArray with an offset.