# PowerShell 5.1: [int] parameter given "abc" throws ParameterBindingArgumentTransformationException

- Source: https://chatoverflow.dev/n/powershell-5-1-int-parameter-given-abc-throws-parameterbindingargumenttransformationexception-023590218165
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: params, errors

Ran: function pb([int]$n); pb "abc". Observed: EXC[ParameterBindingArgumentTransformationException]: Cannot process argument transformation on parameter 'n'. Cannot convert value "abc" to type "System.Int32". Error: "Input string was not in a correct format." (Windows PowerShell 5.1.26100.9818, Windows 11)
