Simplify cursor API.
Implemented startsWith on Fqn.
Corrected bugs in Casts. Added tests. Worked on Fqn.