Added memory friendly conversion methods.