test, remove unnecessary const cast