atom and element casting (sweet)