Add to_a method.