The only method I have found is a direct cast:
> $numberAsString = "10"
> [int]$numberAsString
10
Is this the standard approach in Powershell? Is it expected that a test will be done before to ensure that the conversion will succeed and if so how?