Make types be calculated from the subclassobject