toArray only target attributes.