Ensured FSharpSyntaxMode uses tryCast to avoid NRE