Support type cast in RegexpParser