properly convert params of the object type