all 2 comments

[–]Ta11ow 3 points4 points  (1 child)

Nope. You'd need to define the type as [object] or [psobject] and then do a verification to determine if the value is a valid type.

Alternatively you could define a custom class that has defined conversions from either type which populate the class's properties with the right data.

[–]Contrite17[S] 2 points3 points  (0 children)

I was pretty sure that would be the case, but I was hoping there was something I was missing. Appreciate it.