GOB: Fix const away cast warning.

Thanks to DrMcCoy for looking over this.