Workaround is to use cast function while passing value as input to string.
Suppose column firstname is varchar type and has to pass to say concatenate function, it should be passed as cast(firstname as string)
An example is below:
tdm_concatenate( cast(firstname as string), '.', cast(lastname as string), '@' ,cast(companyname as string), '.com')
We return a generic type Object from the function tdm_concatenate, which the Hive environment should be able to convert to relevant type, incase it doesn't work then cast needs to be used accordingly there as well.