Skip to contents

This function verifies if a given value is of the expected type.

Usage

qc_check_type(field_value, expected_type)

Arguments

field_value

The value whose type needs to be checked.

expected_type

The expected type of the field_value.

Value

The original field_value if it matches the expected_type; otherwise, an error is raised.