Use custom_cast() when parsing mapping/label files