Fix #275: Crashes in GUI on committing rednet port

Due to a bad cast, fixed. JAVA!!!