patched cast warnings for starchMetadataHelpers