I know I can type parameters to functions in PowerShell using:
Param ( [int]$myIntParam );
And I know I can pass by reference like this:
Param ( [ref]$myRefParam );
Is it possible to insist that the reference is to a particular type? For example, is it possible to have it be of type "reference to integer"? Like in C, I would to "pointer to integer" as "int*"... Is there something analogous in PowerShell?
I tried googling around but couldn't find any info on this.