> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sifr.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# SIFR-TYPE-0006: Int and bigint are mixed without an explicit conversion.

> Int and bigint are mixed without an explicit conversion.

`SIFR-TYPE-0006` belongs to the **Static typing** diagnostic family. It means: int and bigint are mixed without an explicit conversion.

## Why It Happens

Static types do not line up. Align annotations, inferred expressions, branches, containers, operators, or generic constraints, and convert explicitly where needed.

<Info>
  Use `sifr --explain SIFR-TYPE-0006` locally to see the renderer's exact message template and any machine-applicable suggestions for the compiler version you are running.
</Info>

## Erroneous Code

```python theme={null}
count: int = "three"
```

## How To Fix It

Make annotations, inferred values, branch results, container elements, and operator operands agree. Add explicit conversions where the conversion is meaningful.

## Fixed Code

```python theme={null}
count: int = 3
```

## Details

| Field                  | Value                                                         |
| ---------------------- | ------------------------------------------------------------- |
| Code                   | `SIFR-TYPE-0006`                                              |
| Family                 | `TYPE`                                                        |
| Severity               | Error                                                         |
| Stability              | stable                                                        |
| Owner                  | `sifr_type_system`                                            |
| Representative fixture | `crates/sifr/tests/e2e/fail/bigint_int_mixed_arithmetic.sifr` |

See the [Error Codes index](/diagnostics/error-codes) for the complete catalog.
