f request param getter improved to accept expected value type