Changes CAS value to long / string 

Can the relevant people test this change?

//cc #159