Update README.md

add toArray() to API section