fixed array casting issue caused by change in underlying implementation
removed useless cast
Merge pull request #2 from elouet/master

fixed array casting issue caused by change in underlying implementation