Changed getAttribute / setAttribute to type based method getter/setter