change #cast_to_timestamp, add test