Implemented for cast test cases.