Fix data type mismatch for the first join example by using CAST