Fix an unchecked warning in BaseWriter.java
Merge pull request #315 from SpecLad/unchecked

Fix an unchecked warning in BaseWriter.java