added conversion to array