Alex Vinogradovs <AVinogradovs(at)clearpathnet(dot)com> writes:
> Is it possible to make it work properly without
> use of explicit casts ? Thanks!
Read
http://www.postgresql.org/docs/8.3/static/xindex.html
particularly the discussion of cross-type index operators.
regards, tom lane