convert custom params to appropriate types