Enforce valid data types