code: public <T> T get(String type, Class<T> as) {
      return ValueConverter.convertToJava(type, value, as);
    }
docs: Returns the value cast to the specified type.
  
  This method converts the value according to the supplied type and then casts it
  to the specified class.
  
  <p>The following types are supported:
  <code>xs:anySimpleType</code>,
  <code>xs:base64Binary</code>, <code>xs:boolean</code>,
  <code>xs:byte</code>, <code>xs:date</code>,
  <code>xs:dateTime</code>, <code>xs:dayTimeDuration</code>,
  <code>xs:decimal</code>, <code>xs:double</code>,
  <code>xs:duration</code>, <code>xs:float</code>,
  <code>xs:int</code>, <code>xs:integer</code>,
  <code>xs:long</code>, <code>xs:short</code>,
  <code>xs:string</code>, <code>xs:time</code>,
  <code>xs:unsignedInt</code>, <code>xs:unsignedLong</code>,
  <code>xs:unsignedShort</code>, and
  <code>xs:yearMonthDuration</code>.</p>
  
  @see com.marklogic.client.impl.ValueConverter#convertToJava(String,String) label
  @param type The name of the XSD type to use for conversion.
  @param as The class parameter
  @param <T> The class to cast to
  @return The value, cast to the specified type or