Added assert for BaseType and object sanitize