Added a cdk.isValidCAS() method

Arvid, a wrapper for some more CDK functionality.