A helper function that converts the data attributes of an HTML element into an object, parsing and transforming values based on their types (such as boolean, numeric, and more)