Use type-safe wrapper for TypeFlags