Remove unnecessary casts in Mdct.cs.