Variable type mismatch

Thanks for your help!