coherse search params into correct type