Fixed unchecked cast, which cause some SVG as external graphic to fail