ClosedBit error docs

CB_ERR_TYPE_MISMATCH

Value type mismatch. A value was passed where the target function, variable, or operator expected a different type.

Why it happens

A value was passed where the target function, variable, or operator expected a different type.

How to fix it

Convert explicitly with parse helpers or to_string, and keep u256, i256, f64, string, and bool lanes separate.

Copy-paste fix pattern
fn main() {
    string text = "125"
    u256 value = parse_u256_or(text, zero)
    save value
}
If the IDE reports a line number, fix that line first, then scan the previous line for an unclosed string, bracket, or block.