diff --git a/core/src/main/java/com/orientechnologies/orient/core/db/document/ODatabaseDocumentTx.java b/core/src/main/java/com/orientechnologies/orient/core/db/document/ODatabaseDocumentTx.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/com/orientechnologies/orient/core/db/document/ODatabaseDocumentTx.java
+++ b/core/src/main/java/com/orientechnologies/orient/core/db/document/ODatabaseDocumentTx.java
@@ -98,7 +98,7 @@ public class ODatabaseDocumentTx extends ODatabaseRecordWrapperAbstract<ODatabas
    */

   @Override

   public <RET extends ORecordInternal<?>> RET save(final ORecordInternal<?> iRecord) {

-    return save(iRecord, OPERATION_MODE.SYNCHRONOUS, null);

+    return (RET) save(iRecord, OPERATION_MODE.SYNCHRONOUS, null);

   }

 

   /**
Fixed compilation problem reported in ML by Jacques