Fill in castOk implementation for object types.