util/cache_test.cc: use static_cast over C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>