Patch 6

Fixed an array typecasting error.