Ok, I'm coming from Microsoft .Net. In C# I would do:
var polyRegion = region as Polygonal2DRegion;
if (polyRegion != null && polyRegion.isCollinear())
Is there something similar in Java?