By convention the casting function's name in SQL terms is the same as the data type returned. So we would have:
- md5hash(text)
- md5hash(bytes)
both returning md5hash types. For backwards compatibility would add these in addition to existing functions.
The reason is it makes it easier to remember the names of the functions when calling the functions in this way.