Fix metadata in the manifest
More cast impl work