Fix getPercentileForUrl method

Cast returned values to their correct type