I need use match to check if a value is an array of strings or a string. I\'ve tried something in the vain of
match
| :? string[] -> .. | :? string
You need to modify the syntax slightly, but you were almost correct
let fn (arg:obj) = match arg with | :? string as str -> printfn "string" | :? (string[]) as arr -> printfn "string array"