Revert "Fixed typecast for hit rates"

This reverts commit dce6d29de8b30c5ab5c66e34d006eaf306859969.
Revert "Fixed return types"

This reverts commit b7e194647a1f3ababb1a630e0c51b5eeda96aef0.