code: function castToType(val) {
      if (/^(true|false)$/.test(val))
          return chek_1.toBoolean(val);
      if (/^[\d\.]+$/.test(val))
          return chek_1.toNumber(val);
      return val;
  }
docs: Cast To Type
  : Loosely tries to cast numbers and booleans.
  
  @param val the value to be cast.