Removed unsafe vector conversion functions that caused incorrect conversions in some cases