Add event to convert attributes type