fixed incorrect cast to array

Incorrectly parsed string values.