Refactors the ObjectCheckExtensions class by replacing former cast with the ExtensibilityHelper and with few code style reformats.