Removing cast functions.
Adding initial inline functions.
removing source files for inline functions.
Adding casting functions.
Adding ability for subclasses to define their own object validation.