Optional method to check if to values are the same
bool Function(T a, T b) equalityCheck = identical;