code: public BigDecimal getAndDecryptBigDecimal(String name, String providerName) throws Exception {
          Object found = getAndDecrypt(name, providerName);
          if (found == null) {
              return null;
          } else if (found instanceof Double) {
              return new BigDecimal((Double) found);
          }
          return (BigDecimal) found;
      }
docs: Retrieves the decrypted value from the field name and casts it to {@link BigDecimal}.
  
  Note: Use of the Field Level Encryption functionality provided in the
  com.couchbase.client.encryption namespace provided by Couchbase is
  subject to the Couchbase Inc. Enterprise Subscription License Agreement
  at https://www.couchbase.com/ESLA-11132015.
  
  @param name the name of the field.
  @param providerName crypto provider for decryption
  @return the result or null if it does not exist.