The cast here would be have to be removed later. See https://github.com/Jasig/cas/pull/211