Cast param to array