Adding casts to arguments of translate_address to remove compile warnings