refactored TypeExtensions for simplicity
Merge pull request #14 from adamralph/refactor-type-extensions

refactored TypeExtensions for simplicity