Handle if value is binary type