Add a "cas" function to the data module