fixed array casting issue caused by change in underlying implementation