class ToEntityId extends KorypheFunction<Object, EntityId> {

    @Override
    public EntityId apply(final Object obj) {
        if (null == obj) {
            return null;
        }
        return obj instanceof EntityId ? (EntityId) obj : new EntitySeed(obj);
    }

}