Added tests for cast