Add attribute helper methods, casting