StructType must inherit from DerivedType, not Type