How to get location of TiledMap Object?

When using the Tiled program, the objects I place have a already built in “X” and “Y” property. I can’t, however, seem to access it.

Doing:

Object.getProperties.get("Y", float.class);

throws a null pointer exception which I assume means the property doesn’t exist.