casting incoming data to string in case of buffer typed value