language changes: std::cast is merged to std::mem.