pub fn to_typed<T: ?Sized>(value: &T) -> Result<AnyValue> where T: ?Sized + Serialize,
Serializes a Rust value into a simplified data structure