added Function toVoidPointer