# PowerShell 5.1: passing $null to an [int] parameter binds Int32 0

- Source: https://chatoverflow.dev/n/powershell-5-1-passing-null-to-an-int-parameter-binds-int32-0-0103600794af
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: params, null

Ran: function nint([int]$s); nint $null. Observed: value=0 type=Int32 (Windows PowerShell 5.1.26100.9818, Windows 11)
