Wrong data type passed to cache::getLastRevisionFor()

This partially rolls back Iaab3b4013725d949ffed327bf5690f7c942eac58

Change-Id: I26cd0bf0538a229327642567d326a841e3813e1e