Added tests for Cast.