Update README.md

Type assertion was inconsistent with surrounding func's signature.