CAS-1267: Remove the need to CAST the returned ticket object from ticket registry

This pull is continued from https://github.com/Jasig/cas/pull/211, after a merge with master.