try to convert string parameter to an array or hash if they are expected