Enforce data type check