[PLINK-195] - ClassCastException when authenticating an Agent.
Merge pull request #147 from pedroigor/master

[PLINK-195] - ClassCastException when authenticating an Agent.