in C# I could use the keyword 'is'
if (variable is string) { }
how is this done in f#
Try
if (variable :? string) ...
or
let x = variable :? string