Added check between setter and field types.