public static T SafeGetVal <T>(this DataStub <T> stub)
 {
     if (stub)
     {
         return(stub.Val);
     }
     return(default(T));
 }
 public static T SafeGetVal <T>(this DataStub stub)
 {
     if (stub)
     {
         if (stub.Val is T)
         {
             return((T)stub.Val);
         }
     }
     return(default(T));
 }