Make sure the parameter is of correct type