Assertion failed: isa<To>(Val) && "cast<Ty>() argument of incompatible type!", file D:\ollvm1706\llvm\include\llvm/Support/Casting.h, line 578