using implicits to convert the types to Data