TiDB supports all of the cast functions and operators available in MySQL 5.7.
BINARY
CAST()
CONVERT()
Cast functions and operators enable conversion of values from one data type to another.