is this cast to add const guaranteed to be OK?

Printable View