Revert "Added cast test"

This reverts commit 4148f9e1f9dba4824f159e1cd6b4bb57371a3072.