but rpad() is better.

the cast function give strange data result.