pub fn cast<A, B>(a: A) -> Result<B, CastError>where A: Debug + Clone, B: TryFrom<A>, B::Error: Error + Sync + Send + 'static,