Rather than always cast and let things blow up at runtime if the developer gets it wrong, use the required type in the API and highlight any issue at compile time.

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