Added a type check for Constant.Record object.