Fix unneeded cast causing crash in new Config GUI system.