test: replace cast() with isinstance asserts in integration tests
#787
+576
−767
cast() with isinstance asserts in integration tests
#787