Add some sundry files to make the repo more robust.
Add nil check on the item before attempting to uncast.