Remove a cast that's no longer necessary