cast_option<C extends CandidType> method
Implementation
Option<C> cast_option<C extends CandidType>() {
return Option<C>(
value: this.value == null ? null : C == Blob ? Blob.oftheVector((this.value as Vector).cast_vector<Nat8>()) as C : this.value as C,
value_type: this.value_type == null ? null : C == Blob ? Blob([],isTypeStance:true) as C : this.value_type as C,
isTypeStance: this.isTypeStance
);
}