Replaced type_of() with optional type argument in constructor