Add metafield type switch