Fixed a problem with conversions to primitive data types.

In this case, the Class.cast() method cannot be used.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/configuration/trunk@1516574 13f79535-47bb-0310-9956-ffa450edef68