DRILL-1109: Implement downward casting functions for decimal data type.