Use YAML tags to prevent type ambiguity
masterTo ensure values are converted to the correct type (e.g., preventing a string like +40123 from being cast to an Int64), use explicit YAML tags. This module supports core schema tags and the !!timestamp tag.
$data = @"
aPhoneNumber: !!str +40123456789
aPhoneNrWithoutTags: +40123456789
"@
$obj = ConvertFrom-Yaml $data
# $obj.aPhoneNumber is a String
# $obj.aPhoneNrWithoutTags is an Int64