title: Is there any equivalent function in C++ as the astype() function in python?
body: <p>I am looking for a function that can cast every element of an array to float type in c++ (like what astype() do in python).
  Do you know any?</p>
  
  <p>Thanks</p>