*sigh* fix another illegal cast