Add ensurance of typecast to item retrieval.

Ensure that the type requested in the addition of a parameter (which
defaults to str) is respected upon retrieval.  This ensures that the
values coming from a configuration file will be the correctly expected
type.