remove pointless const_cast

Change-Id: I6026ab64f0cfe1d509c8f94ce3b9c6f700c823cf