protected static function castFloat($v) { return !preg_match('/[^0-9\\.]/', $v) ? (double) $v : null; }