mzgreen
To avoid an exception being thrown, one can use a safe cast operator as? that returns null on failure