Turn TypeHelper.as into a value class