metadata type checking and conversion implemented, but not tested