Revert "fixed example of toArray"

This reverts commit 3fdd738aa8cda4ec1e81656ee7c9415fb1760e41.