cast args as array