cast<E extends ScVal> method

E cast<E extends ScVal>()

Implementation

E cast<E extends ScVal>() {
  if (this is! E) {
    throw DartStellarPlugingException("ScVal Casting failed.",
        details: {"excepted": "$T", "type": "$runtimeType"});
  }
  return this as E;
}