castConverter<T> static method
Convert an incoming js object to T
using a basic cast.2
This method is used for the convertJSObjectToList method by default.
Replace it if something more specific is required.
Implementation
static T castConverter<T>(final Object input) => input as T;