Currently there is an "Auto" option for the domain, but there should be a similar option for "Auto", that uses the data type from the existing attribute.
Implementing this would be quite simple, other nodes already use the data type from an existing attribute (the atttribute mix node comes to mind).