Cast tokens to data types