cast parameter to array if its required by action