> For the complete documentation index, see [llms.txt](https://demystifyfp.gitbook.io/fstoolkit-errorhandling/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://demystifyfp.gitbook.io/fstoolkit-errorhandling/fstoolkit.errorhandling/option/transforms/ofnull.md).

# ofNull

Namespace: `FsToolkit.ErrorHandling`

Transforms a `nullableValue` value to `'nullableValue Option`.

## Function Signature

```fsharp
'nullableValue -> 'nullableValue Option
```

## Examples

### Example 1

```fsharp
let opt = Option.ofNull 1
// Some 1
```

### Example 2

```fsharp
let opt = Option.ofNull null
// None
```
