Validate and convert data types
