How to cast a string value as an integer in PowerShell