Added type cast for getter return values.

All properties are passed in through the constructor, via the database,
the type of which is usually a string.