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

# TransformToBoolean

> Property decorator that transforms the string environment variable value "true" or "false" into a native boolean.

> **TransformToBoolean**(): `PropertyDecorator`

Defined in: [packages/env/src/decorators/transform-to-boolean.decorator.ts:18](https://github.com/NanoForge-dev/Engine/blob/ed8c7e0b33d17f8343c32659cf63ba4166a4fa53/packages/env/src/decorators/transform-to-boolean.decorator.ts#L18)

Property decorator that transforms the string environment variable value
`"true"` or `"false"` into a native `boolean`.

## Returns

`PropertyDecorator`

## Remarks

Returns `undefined` for any value that is neither `"true"` nor `"false"`.
Pair with `@IsBoolean()` and `@Default(false)` for a fully validated and
defaulted boolean property.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.