Is it possible to cast a custom object into another custom object in Javascript? For example, in the Java implementation of the code I am trying to convert into Javascript, they have done the following:
return ((TimeSeriesPoint)tsArray.get(pointIndex)).get(valueIndex);
where tsArray
is an ArrayList
and TimeSeriesPoint
is a custom class for which the implementation exists. Is it possible to perform such casting into TimeSeriesPoint
in Javascript
?
Thanks in advance