title: Get element of character varying type by index or convert it to array
body: <p>I have some sql function that returns <code>character varying</code> type. The output is something like this:
  'TTFFFFNN'. I need to get this characters by index. How to convert character varying to array?</p>