I have an object that has about 60 attributes that are both of type String and of type double, plus a few that are of other types, and by chance I need a map where the keys are the names of the attributes of the object and value its values, however I also want to be able to choose which attributes of that object should not be converted to map, that is, I only want those that are of type String and double to be mapped.