Add casting support for DBType