fixed Pickler.Cast<_> bug