Check params for correct type