Is there a simple way to test a cast. For example I have a structure that changes from time to time, and if the cast fails move onto an else statement?
Is this possible or wi.l it always throw an exception? Basically what I get is saying that I cant convert my custom type to a bool. But there should be other ways.