Avoid repeated casting
Fix javadocs for Mercator