I'm not sure asserting the type actually gains anything. If it's the wrong not-nil class, it'll throw an exception upon saving to the database.