#727 fixed build failure caused due class cast exception
Merge pull request #759 from pshivana/migrate_package_repository_extension

#727 fixed build failure caused due class cast exception