SyntaxFix
Write A Post
Hire A Developer
Questions
Probably the shortest version:
[System.Collections.ArrayList]$someArray
It is also faster because it does not call relatively expensive New-Object.
New-Object