Hello,
the documentation of the typeOf system function is not clear: all the examples uses a type as parameter (String, List<1>, Dictionary<2>), but the function also accepts that a variable or property is also used as a parameter.
So, if the intended semantic is to allow also variables, field and properties, as a parameter, the documentation should be clear about this. Otherwise, there is an error in the compiler…