Set meta id to an integer when checking against the parent id.

Resolves issue where creating meta for a post_id was returning an error.