[Apache] Avoid useless cast