Have the same interface for toArray between cursors and array