Support Cast in order_by.