I am trying to verify whether a variable that is passed can be converted to a specific type. I have tried the following but can\'t get it to compile so I assume I\'m going
Have you tried TryParse which has a boolean return value to indicate whether the conversion succeeded