Facing issues while inserting embeddings into PGVector

How to typecast or convert CreateEmbeddingResponse object to Embeddings object as langchain PGVector function takes only Embeddings