Converts the elements to a specific type, e.g. int -> real