CastInst::castIsValid should return true if the dest type is the same as
Value's current type. The casting is trivial even for aggregate type.