pub fn convert<F, T>(value: F) -> Twhere F: CandidType, T: for<'a> Deserialize<'a> + CandidType,
Utility function to convert between types via Candid encoding/decoding.