[Core] Corrected Cast for trainer levels. Thanks to Rochet for pointing