powershell type casting

Shell
$string1 = Read-Host -Prompt "Give me a Number"
$num1 = [int]$string1
Source

Also in Shell: