Now we can set a limit on the toArray() method.